﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2.Modals
{
    public abstract class BaseEntity
    {
        //构造方法：设置默认值
        public BaseEntity()
        {
            IsActived = true;
            IsDeleted = false;
            CreatedTime = DateTime.Now;
            UpdatedTime = DateTime.Now;
            DisplayOrder = 0;
        }
        public long Id { get; set; }
        public bool IsActived { get; set; }

        public bool IsDeleted { get; set; }

        public DateTime CreatedTime { get; set; }

        public DateTime UpdatedTime { get; set; }

        public int DisplayOrder { get; set; }

        public string Remarks { get; set; }

    }
}
